---
title: Popover
description: Displays rich content in a portal, triggered by a button.
component: true
links:
  doc: https://ui.shadcn.com/docs/components/popover
  api: https://www.radix-ui.com/docs/primitives/components/popover#api-reference
---

## Installation

<Tabs defaultValue="cli">

<TabsList>
<TabsTrigger value="cli">CLI</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx @udecode/plate-ui@latest add popover
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>

Install the `@radix-ui/react-popover` component from radix-ui:

```bash
npm install @radix-ui/react-popover
```

</Step>

<Step>

Copy and paste the following code into your project.

</Step>

<ComponentSource name="popover" />

<Step>

Update the import paths to match your project setup.

</Step>

</Steps>

</TabsContent>

</Tabs>
